Adjust default property values, skip GtkRange:adjustment.
icon_info = priv->icons[icon_pos];
if (!icon_info)
- return FALSE;
+ return TRUE; /* Default of the property */
return gtk_widget_get_sensitive (icon_info->widget);
}
g_param_spec_boolean ("visible-window",
P_("Visible Window"),
P_("Whether the event box is visible, as opposed to invisible and only used to trap events."),
- TRUE,
+ FALSE,
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_install_property (gobject_class,
PROP_ABOVE_CHILD,
g_param_spec_string ("text",
P_("Text"),
P_("The contents of the entry"),
- "",
+ "0", /* Default value of the default adjustment */
GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY));
g_object_class_override_property (gobject_class,
*
* The ::input signal can be used to influence the conversion of
* the users input into a double value. The signal handler is
- * expected to use gtk_entry_get_text() to retrieve the text of
- * the entry and set @new_value to the new value.
+ * expected to use gtk_spin_button_get_text() to retrieve the text of
+ * the spinbutton and set @new_value to the new value.
*
* The default conversion uses g_strtod().
*
strcmp (pspec->name, "show-desktop") == 0)
continue;
+ /* GtkRange constructs an adjustment on its own if NULL is set and
+ * the property is a CONSTRUCT one, so the returned value is never NULL. */
+ if (g_type_is_a (type, GTK_TYPE_RANGE) &&
+ strcmp (pspec->name, "adjustment") == 0)
+ continue;
+
+ /* ... and GtkScrollbar wraps that property. */
+ if (g_type_is_a (type, GTK_TYPE_SCROLLBAR) &&
+ strcmp (pspec->name, "adjustment") == 0)
+ continue;
+
+
if (g_test_verbose ())
g_print ("Property %s.%s\n",
g_type_name (pspec->owner_type),
children = g_list_concat (children, gtk_container_get_children (children->data));
else if (GTK_IS_LABEL (children->data))
label = gtk_label_get_text (children->data);
+ else if (GTK_IS_ACCEL_LABEL (children->data))
+ label = gtk_accel_label_get_label (children->data);
children = g_list_delete_link (children, children);
}
contents = gtk_bin_get_child ((*children)->data);
if (GTK_IS_LABEL (contents))
label = gtk_label_get_label (GTK_LABEL (contents));
+ else if (GTK_IS_ACCEL_LABEL (contents))
+ label = gtk_accel_label_get_label (GTK_ACCEL_LABEL (contents));
else
label = "";